#region Using Statements

using System;
using NUnit.Framework;

#endregion

namespace Dotss.Core.Test
{

    [TestFixture]
    public class ClientConfig
    {

        #region Bogus Startup Object

        [STAThread]
        public static void Main() { }

        #endregion

        [Test]
        public void Settings_Should_Not_Be_Null()
        {

            Assert.IsNotNull(Core.ClientConfig.Settings, "Settings were not created successfully");

        }

        [Test]
        public void Settings_Should_Report_Timeout_10()
        {
            Assert.AreEqual(10, Core.ClientConfig.Settings.Timeout, "Timeout not properly set to 10");
        }

        [Test]
        public void Settings_Should_Identify_Server_Elements_Properly()
        {

        	Core.ClientConfig CC = Core.ClientConfig.Settings;

            Assert.AreEqual(1,				CC.Servers.Count,				"Did not find the single server entry");
            Assert.AreEqual("10.1.1.1",		CC.Servers[0].Address,			"Found the wrong address for the server");

        }

		[Test]
		public void Settings_Should_Identify_No_Compression()
		{

			Core.ClientConfig CC = Core.ClientConfig.Settings;

			Assert.AreEqual(false,			CC.Compression,					"Did not properly set the compression from the config file");

		}

    }

}
